<form class="tableform">
<div class="division">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
  <th><{t}>iframe宽：<{/t}></th>
  <td><{input type="text" id="width" value="400" vtype='required' size="10" }>px</td>
</tr>
<tr>
  <th><{t}>iframe高：<{/t}></th>
  <td><{input type="text" id="height" value="300" vtype='required' size="10" }>px</td>
</tr>
<!--
<tr>
  <th><{t}>自定义css：<{/t}></th>
  <td><{input type='textarea' name='css' value="" rows="4" cols="70" }></td>
</tr>
-->
</table>
</div>
</form>
<div class="table-action">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
  <th><{button type='button' id="create_code" label=$___a='生成代码'|t:'site' }></th>
  <td>
  js：<{input type="textarea" id="js" value="" rows="2" cols="70" }><br />
  iframe：<{input type="textarea" id="iframe" value="" rows="2" cols="70" }><br />
  </td>
</tr>
</table>
</div>
<script>
$('create_code').addEvent('click', function(){
	var width = $('width').value;
	var height = $('height').value;
	var iframe = "<iframe width='"+width+"px' height='"+height+"px' src='<{$url}>'></iframe>";
	$('js').value = "<script>document.write(\""+iframe+"\");</scr"+"ipt>";
	$('iframe').value = iframe;

});
</script>